<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>template</title>

    <script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
<!--可以使用class名字-->
  <div id="test">
      <my-comp v-bind:say="'wld'">
          李沁，地利热吧，容祖儿，唐艺馨，蔡卓妍，林志玲
      </my-comp>
      <my-comp v-bind:say="'ddd'">

      </my-comp>
  </div>
</body>
<script>

    //创建模板
    vue.component('my-comp',{
        props:['say'],
        template:'<h1>{{say}}</h1>'
    });

    var vm=new Vue({
        el:'#test'
    })
</script>
</html>